package com.mystudy.javalambdastudy.stream;

import java.util.Arrays;
import java.util.List;

/**
 * TODO: java8 流 {@link java.util.stream.Stream} 体验
 * @author acy
 * @since 2019/04/28 11:50
 */
public class Java8StreamExperience {
	public static void main(String[] args) {
		List<String> list = Arrays.asList("hello", "world", "hello World");
		list.stream().map(item -> item.toUpperCase()).forEach(item -> System.out.println(item));
		list.stream().map(String :: toUpperCase).forEach(item -> System.out.println(item));
	}
}
